# -*- coding: utf-8 -*-
# @Time         : 13:53 2025/2/26
# @Author       : Chris
# @Description  :
from typing import List

from .product import ProductStatus
from .._models import BaseModel


class Error(BaseModel):
    """错误信息"""
    item_key: str
    """批次商品KEY, 示例：2021110802"""

    msg: str
    """错误描述, 示例：缺少商品标题"""


class Success(BaseModel):
    """成功信息"""
    item_key: str
    """批次商品KEY, 示例：2021110801"""

    product_id: int
    """管家商品ID, 示例：219530767978565"""

    product_status: ProductStatus
    """管家商品状态, 示例：10"""


class ProductBatchCreateResponse(BaseModel):
    """商品批量创建响应"""
    error: List[Error]
    """错误信息列表"""

    success: List[Success]
    """成功信息列表"""
